package com.open.capacity.reimburse.dto.desk;

import lombok.Data;


@Data
public class App {
    private Boolean addressBar;
    private Integer autoRun;
    private Boolean background;
    private Integer badge;
    private String desc;
    private Icon icon;
    private String openMode;
    private Boolean plugin;
    private Position position;
    private String version;
    private String poweredBy;
    private Boolean resizable;
    private Boolean single;
    private Size size;
    private String title;
    private String url;
    private String customTile;
    private Boolean urlRandomToken;

    @Data
    public static class Icon {
        public Icon(String _type, String _bg, String _content) {
            this.type = _type;
            this.bg = _bg;
            this.content = _content;
        }

        private String type;
        private String bg;
        private String content;
    }

    @Data
    public static class Position {
        public Position(String _x, String _y, Boolean _left, Boolean _top, Boolean _autoOffset) {
            this.x = _x;
            this.y = _y;
            this.left = _left;
            this.top = _top;
            this.autoOffset = _autoOffset;
        }

        private String x;
        private String y;
        private Boolean left;
        private Boolean top;
        private Boolean autoOffset;
    }

    @Data
    public static class Size {
        public Size(String _width, String height) {
            this.width = _width;
            this.height = height;
        }

        private String width;
        private String height;
    }
}
